﻿@using QDT.Web.Admin.Models
<div class="main_title">新增
    @Html.ActionLink("返回列表", "Index", "Article", null,new {@class = "back_list"})
</div>
<div class="blank5"></div>
@using (Html.BeginForm("PostAdd", "Article")) {
    <table class="form" cellpadding="0" cellspacing="0">
        <tbody><tr>
                   <td colspan="2" class="topTd"></td>
               </tr>
            <tr>
                <td class="item_title">文章标题:</td>
                <td class="item_input"><input type="text" class="textbox require" name="Title"></td>
            </tr>
            <tr>
                <td class="item_title">附标题:</td>
                <td class="item_input">
                    <input type="text" class="textbox" name="SubTitle" > 
                    <span class="tip_span">[仅用于公告的推荐显示]</span>
                </td>
            </tr>
            <tr>
                <td class="item_title">简介:</td>
                <td class="item_input">
                    <textarea class="textarea" name="Brief"></textarea>
                </td>
            </tr>
            <tr>
                <td class="item_title">标题图片：</td>
                <td class="item_input">
                    @Html.UploadImage("Photo")
                </td>
            </tr>
            <tr>
                <td class="item_title">URL别名:</td>
                <td class="item_input">
                    <input type="text" class="textbox word-only" name="UName" > 
                </td>
            </tr>
            <tr>
                <td class="item_title">引用外链地址:</td>
                <td class="item_input">
                    <input type="text" class="textbox" name="RelUrl">
                </td>
            </tr>
            <tr>
                <td class="item_title">排序:</td>
                <td class="item_input">
                    <input type="text" class="textbox" name="Sort" >
                </td>
            </tr>
            <tr>
                <td class="item_title">分类:</td>
                <td class="item_input">
                    <select name="CateId" class="require">
                        <option value="0">==未选取分类==</option>
                        @if (ViewData["CateModel"] != null) {
                            foreach (ArticleCateTree m in ViewData["CateModel"] as IList<ArticleCateTree>) {
                                <option value="@m.Id">@(new MvcHtmlString(m.Title))</option>
                            }
                        }
                    </select>
                </td>
            </tr>
	
            <tr>
                <td class="item_title">状态:</td>
                <td class="item_input">
                    <lable>有效<input type="radio" name="IsEffect" value="true" checked="checked"></lable>
                    <lable>无效<input type="radio" name="IsEffect" value="false"></lable>
                </td>
            </tr>
            <tr>
                <td class="item_title">文章内容:</td>
                <td class="item_input">
                    <textarea name="Content" id="content" style="width:700px;height:700px;visibility:hidden;"></textarea>     
                </td>
            </tr>
@*            <tr>*@
@*                <td class="item_title">文章内容页SEO自定义标题:</td>*@
@*                <td class="item_input">*@
@*                    <textarea class="textarea" name="SeoTitle"></textarea>*@
@*                </td>*@
@*            </tr>*@
@*            <tr>*@
@*                <td class="item_title">文章内容页SEO自定义关键词:</td>*@
@*                <td class="item_input">*@
@*                    <textarea class="textarea" name="SeoKeyword"></textarea>*@
@*                </td>*@
@*            </tr>*@
@*            <tr>*@
@*                <td class="item_title">文章内容页SEO自定义描述:</td>*@
@*                <td class="item_input">*@
@*                    <textarea class="textarea" name="SeoDescription"></textarea>*@
@*                </td>*@
@*            </tr>*@
            <tr>
                <td class="item_title"></td>
                <td class="item_input">
                    <!--隐藏元素-->
                    <!--隐藏元素-->
                    <input type="submit" class="button" value="新增">
                    <input type="reset" class="button" value="重置">
                </td>
            </tr>
            <tr>
                <td colspan="2" class="bottomTd"></td>
            </tr>
        </tbody></table>
}
<script type="text/javascript">
     var editor;
     KindEditor.ready(function(keditor) {
         editor = keditor.create('#content', {
             allowFileManager: true,
            uploadJson: '/Home/UploadImage',
         });
     });
</script>